﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/11/18 15:10:21
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace WCYCReader.StorageHelper
{
    public static class StreamReaderExtension
    {
        public static async Task<String> ReadToEndAsyncThread(this StreamReader reader)
        {
            return await Task.Factory.StartNew<String>(reader.ReadToEnd);
        }
    }
}
